<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<c:url value='/css/style.css'/>">
<link rel="stylesheet" type="text/css" href="<c:url value='/css/common.css'/>">
<script type="text/javascript" src="<c:url value='/js/jquery-1.8.3.min.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/menu.js'/>"></script>
</head>
<body>
<div class="m-right">
	<div class="right-nav">
		<ul>
			<li><img src="images/home.png"></li>
			<li style="margin-left: 25px;">您当前的位置：</li>
			<li><a href="#">主界面</a></li>
		</ul>
	</div>
	<div class="main">
		<c:if test="${sessionScope.user.roleId == 4 }">
			<button id = "btn">初始化论文索引</button>
		</c:if>
	</div>
	
	<script type="text/javascript">
		$("#btn").click(function() {
			$.ajax({
				url:'<c:url value="/thesis/init"/>',
				type:'post',
				success:function(data) {
					alert(data);
				}
				
			});
		});
	</script>
</div>
</body>
</html>